const { DataTypes } = require('sequelize')
const sequelize = require('../config/database')

const ImagesModel = sequelize.define('Image', {
  images_id: {
    type: DataTypes.INTEGER,
    autoIncrement: true,
    allowNull: false,
    primaryKey: true
  },
  url: {
    type: DataTypes.STRING,
    allowNull: false
  },
  decorate: {
    type: DataTypes.STRING
  }
}, {
  freezeTableName: true,
  tableName: 'image',
  timestamps: false
})

module.exports = ImagesModel